'use strict';

const Controller = require('egg').Controller;

class listController extends Controller {
  async list(){
    const {ctx} = this;
    const {name,num,total} = ctx.query
    console.log(name,num,total);
    const data = await this.service.getList.getList(name,num,total)
    ctx.body = {
        code:200,
        msg:"数据请求成功",
        data
    }
  }
}

module.exports = listController;
